//
//  GlobalHeader.h
//  BallLight
//
//  Created by jnl on 2017/10/21.
//  Copyright © 2017年 qin. All rights reserved.
//

#ifndef GlobalHeader_h
#define GlobalHeader_h

//#import "BleManager.h"
//#import <CoreBluetooth/CoreBluetooth.h>
//#import "ConfigManager.h"
//#import "ConfirmDialog.h"
//#import "BleDataHelper.h"
//#import "MyToast.h"
//#import "MyLog.h"
//#import "MyLayout.h"
//#import "Masonry.h"
//#import "UIButton+MyButton.h"
//#import "UILabel+CustomLabel.h"
//#import "UIColor+ColorChange.h"
//#import "UIImageView+MyImageView.h"
//#import "CustomSlider.h"
//#import "CustomAlertView.h"
//#import "NSString+Pinyin.h"
//#import <Realm/Realm.h>
#import "StorageUtil.h"


#define MARGIN 10
#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height
#define SCALE_W(h) (([UIScreen mainScreen].bounds.size.width/320.0)*h)

#define COLOR_D(c)  ([UIColor colorWithHexString:c])
#define COLOR_CANCEL  ([UIColor colorWithHexString:@"#707070"])//
#define COLOR_THEME [UIColor colorWithHexString:(@"#2BB880")]
#define BTN_SIZE    CGSizeMake(SCALE_W(105), SCALE_W(45));
#endif /* GlobalHeader_h */


//LOG
#ifdef DEBUG
#define DLog(fmt, ...) NSLog((@"\n %s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define DLog(...)
#endif
// ALog always displays output regardless of the DEBUG setting
#define ALog(fmt, ...) NSLog((@" \n %s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);


